package cn.com.hd.mall.web.webservices.entity.response.cpx;

import java.io.Serializable;
import java.util.List;

import cn.com.hd.mall.web.webservices.entity.BaseResponse;

/**
 * @author wuhaiyang 获取可用和不可用优惠券列表
 */
public class GetCouponListResponse extends BaseResponse {
    /**
     * 可用优惠券
     */
    private List<CouponListModel> useablecouponList;

    /**
     * 不可用的优惠券
     */
    private List<CouponListModel> unUseablecouponList;

    public List<CouponListModel> getUseablecouponList() {
        return useablecouponList;
    }

    public void setUseablecouponList(List<CouponListModel> useablecouponList) {
        this.useablecouponList = useablecouponList;
    }

    public List<CouponListModel> getUnUseablecouponList() {
        return unUseablecouponList;
    }

    public void setUnUseablecouponList(List<CouponListModel> unUseablecouponList) {
        this.unUseablecouponList = unUseablecouponList;
    }

    public static class CouponListModel implements Serializable {
        private String couponId; // 优惠券id
        private String couponCode; // 优惠券编号
        private String couponName; // 优惠券名称（丹露红包）
        private String kindsLimit; // 品类限制
        private String couponStatus; // 优惠劵状态
        private String couponAmt; // 优惠券金额
        private String expireDay; // 过期日期
        private String timeLeft; // 剩余天数

        private String mFactUse;// 红包真实消费 -->客户端额外添加的数据 与服务端返回的数据无关 单位 ：分

        private boolean isChecked;


        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean isChecked) {
            this.isChecked = isChecked;
        }

        public String getFactUse() {
            return mFactUse;
        }

        public void setFactUse(String mFactUse) {
            this.mFactUse = mFactUse;
        }

        public String getCouponCode() {
            return couponCode;
        }

        public void setCouponCode(String couponCode) {
            this.couponCode = couponCode;
        }

        public String getCouponId() {
            return couponId;
        }

        public void setCouponId(String couponId) {
            this.couponId = couponId;
        }

        public String getCouponName() {
            return couponName;
        }

        public void setCouponName(String couponName) {
            this.couponName = couponName;
        }

        public String getKindsLimit() {
            return kindsLimit;
        }

        public void setKindsLimit(String kindsLimit) {
            this.kindsLimit = kindsLimit;
        }

        public String getCouponStatus() {
            return couponStatus;
        }

        public void setCouponStatus(String couponStatus) {
            this.couponStatus = couponStatus;
        }

        public String getCouponAmt() {
            return couponAmt;
        }

        public void setCouponAmt(String couponAmt) {
            this.couponAmt = couponAmt;
        }

        public String getExpireDay() {
            return expireDay;
        }

        public void setExpireDay(String expireDay) {
            this.expireDay = expireDay;
        }

        public String getTimeLeft() {
            return timeLeft;
        }

        public void setTimeLeft(String timeLeft) {
            this.timeLeft = timeLeft;
        }

        @Override
        public boolean equals(Object obj) {
            if (null == obj || !(obj instanceof CouponListModel)) {
                return false;
            } else if (((CouponListModel) obj).getCouponCode().equals(getCouponCode())) {
                return true;
            } else {
                return false;
            }
        }


    }

}
